CFLAGS=-I ../head/
CROSS-COMPILE=/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc
OBJ_FILES=menuProcess.o menu.o menuTable.o keyBoard.o display.o main.o centerinterface.o menuinterface.o common_function.o commoninterface.o menubuffer.o message.o glitter.o systemmanager.o gps_module.o Rcv_process.o Trans_process.o gprs.o serial_set.o position.o manualboard.o autoboard.o Umemory.o  memorymanager.o  playsound.o tonefile.o updateprogram.o iccard.o led.o
#PWD := $(shell pwd)tonefile.o 
cpvdwh140901.elf:$(OBJ_FILES)
	$(CROSS-COMPILE)  -lpthread -o ../output/cpvdwh140901.elf -lm $(OBJ_FILES)

%.o:%.c
	$(CROSS-COMPILE) $(CFLAGS) -o $@ -c $^
	
	
.PHONY:clean
clean:
	rm -rf *.o *.c~
	
